import request from '@/utils/request'


export function getJobs(){
  return request({
    url: '/finance/job/',
    method: 'GET'
  })
}

export function addJob(jobInfo){
  return request({
    url: '/finance/job/',
    method: 'POST',
    data: jobInfo
  })
}

export function updateJob(jobInfo){
  return request({
    url: `/finance/job/${jobInfo.id}/`,
    method: 'PATCH',
    data: jobInfo
  })
}

export function delJob(job_id){
  return request({
    url: `/finance/job/${job_id}/`,
    method: 'DELETE',
  })
}

